VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   2400
   ClientLeft      =   48
   ClientTop       =   432
   ClientWidth     =   3744
   LinkTopic       =   "Form1"
   ScaleHeight     =   2400
   ScaleWidth      =   3744
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton CB1 
      Caption         =   "Puzzel"
      Height          =   252
      Left            =   2400
      TabIndex        =   0
      Top             =   1560
      Width           =   732
   End
   Begin VB.Label L1 
      Caption         =   "Resultaat"
      Height          =   372
      Left            =   240
      TabIndex        =   1
      Top             =   240
      Width           =   2772
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CB1_Click()
Dim Rest As Long
Dim Start As Long
Dim i As Integer
    L1.Caption = "Resultaat: ?"
    Start = 1
    Do While (Rest Mod (5) <> 1) Or i <> 5
        Start = Start + 5
        Rest = Start
        For i = 1 To 4
            Rest = ((Rest - 1) \ 5) * 4
            If Rest Mod (5) <> 1 Then Exit For
        Next i
    Loop
    L1.Caption = "Resultaat: " & Start
End Sub
